<template>
  <div id="app">
    <el-container class="con_section">
      <el-header class="blueheader">
        <h2 class="headlogo">南京童心门诊后台管理系统</h2>
        <el-col :span="3" class="userinfo">
          <el-button @click="back">退出</el-button>
        </el-col>
      </el-header>
      <el-container>
        <el-aside style="flex: 0 0 230px;width: 230px;background:#eef1f6">
          <el-menu default-active="1" class="el-menu-vertical-demo" @select="handleSelect">
            <el-submenu index="1">
              <template slot="title">问诊管理</template>
              <el-menu-item index="1">未分配医生</el-menu-item>
              <el-menu-item index="3">已分配医生</el-menu-item>
              <!--<el-menu-item index="3">添加医生</el-menu-item>-->
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">科室管理</template>
              <el-menu-item index="6">科室</el-menu-item>
              <el-menu-item index="5">添加科室</el-menu-item>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">医生管理</template>
              <el-menu-item index="7">医生</el-menu-item>
              <el-menu-item index="4">添加医生</el-menu-item>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">系统管理</template>
              <el-menu-item index="8">修改价格</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main class="home_main">
          <el-col :span="24" class="breadcrumb-container">
          </el-col>
          <el-col :span="24">
            <div style="margin-top:10px">
              <router-view></router-view>
            </div>
          </el-col>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
    export default {
        name: "Admininfo",
      data() {
        return {
          searchCriteria: '',
        }
      },
    //   methods: {
    //     inqu() {
    //       // alert(this.userName);
    //       this.$ajax.get('http://47.75.110.31:8080/orinfo/findByStatus?status=0')
    //         .then(response => {
    //           this.orinfo = response.data;
    //           console.log(this.orinfo[0].id)
    //         })
    //     },
    //     toDetail (orderId) {
    //       console.log(orderId)
    //       // this.$router.push('/SurgeryOrderDetail?order_id=' + orderId)
    //     }
    //
    //   }
    // }
      methods:{
          back(){
            this.$router.push('/')
          },
        handleIconClick(ev) {
          console.log(ev);
        },
        handleSelect(key, keyPath){
          switch(key){
            case '1':
              this.$router.push('/product');
              break;
            case '2':
              this.$router.push('/unchecked')
              break;
            case '3':
              this.$router.push('/handled')
              break;
            case '4':
              this.$router.push('/Addone1')
              break;
            case '5':
              this.$router.push('/Addone2')
              break;
            case '6':
              this.$router.push('/deleteType')
              break;
            case '7':
              this.$router.push('/deleteDoctor')
              break;
            case '8':
              this.$router.push('/updateVipPrice')
              break;
          }
        },
      },
    }
</script>

<style scoped>
  .con_section{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left:0px;
    width:100%;
  }
  .blueheader {
    height: 60px;
    line-height: 60px;
    background: #67c23a;
    color: #fff;
  }
  .el-menu-item.is-active {
    color: #67c23a;
  }
  .headlogo{
    float: left;
    height: 60px;
    margin: 0 20px;
    width: 300px;
  }
  ul.el-menu {
    background: #e4e8f1;
  }
  .userinfo{
    position: absolute;
    right: 0;
  }
  .el-submenu__title{
    background:#eef1f6;
  }
  .el_main{
    padding:0px;
  }
  .home_main{
    padding:10px;
  }
  .breadcrumb-container .title {
    width: 200px;
    float: left;
    color: #475669;
    font-size: 13px;
  }
  .breadcrumb-inner {
    float: right;
    font-size: 13px;
  }
  .el-breadcrumb__inner, .el-breadcrumb__inner a {
    font-weight: 400;
  }
</style>
